<template>
  <div>
    <One />
    <Two />
    <Three />
    <button @click="$children[0].oneCount++">改变one</button>
  </div>
</template>

<script>
import One from "./components/One";
import Two from "./components/Two";
import Three from "./components/Three";

export default {
  name: "App",
  components: {
    One,
    Two,
    Three,
  },
  mounted() {
    console.log(this.$children);
  },
};
</script>

<style></style>
